<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./素材/fontawesome-free-6.7.1-web/css/all.min.css" rel="stylesheet" type="text/css" />
    <style>
        #box1 {
            width: 200px;
            height: 200px;
            background-image: linear-gradient(to right, #6CF, #FFF);
        }

        /* 重复渐变 */
        #box2 {
            width: 200px;
            height: 200px;
            background-image: repeating-linear-gradient(to right, #6CF 10%, #FFF 20%, #06F 30%);
        }

        /* 圆形渐变 */
        #box3 {
            width: 200px;
            height: 200px;
            background-image: radial-gradient(circle at center, #F30, #FFF);
        }

        #box4 {
            width: 200px;
            height: 200px;
            background-image: repeating-radial-gradient(circle at center, #FCF 10%, #FFF 20%, #FF6 30%);
        }

        .text {
            color: #F00;
            font-size: 80px;
        }
    </style>
</head>

<body>
    <div id="box1">

    </div>
    <div id="box2">

    </div>
    <div id="box3">

    </div>
    <i class="fa-solid fa-heart text"></i>
    <div id="box4">

    </div>
</body>

</html>